<?php
namespace User\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * OrderItem
 *
 * @ORM\Table(name="order_item")
 * @ORM\Entity
 */
class OrderItem
{
    /**
     * @var integer
     *
     * @ORM\Column(name="order_item_id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="SEQUENCE")
     * @ORM\SequenceGenerator(sequenceName="order_item_id_sequence", allocationSize=1, initialValue=1)
     */
    private $orderItemId;

    /**
     * @var string
     *
     * @ORM\Column(name="name", type="string", length=1024, nullable=false)
     */
    private $name;

    /**
     * @var string
     *
     * @ORM\Column(name="attributes", type="string", length=1024, nullable=true)
     */
    private $attributes;

    /**
     * @var float
     *
     * @ORM\Column(name="price", type="decimal", nullable=false)
     */
    private $price;

    /**
     * @var float
     *
     * @ORM\Column(name="vat", type="decimal", nullable=false)
     */
    private $vat;
    
    /**
     * @var float
     *
     * @ORM\Column(name="quantity", type="decimal", nullable=false)
     */
    private $quantity;

    /**
     * @var float
     *
     * @ORM\Column(name="order_header_id", type="integer", nullable=false)
     */
    private $orderHeaderId;

    /**
     * @var float
     *
     * @ORM\Column(name="product_id", type="integer", nullable=false)
     */
    private $productId;

    /**
     */
    public function getId() 
    {
    	return $this->orderItemId;
    }
    
    /**
     */
    public function getName()
    {
        return $this->name;
    }
    
    /**
     */
    public function getAttributes()
    {
        return $this->attributes;
    }

    /**
     */
    public function getPrice()
    {
        return $this->price;
    }
    
    /**
     */
    public function getVat()
    {
        return $this->vat;
    }

    /**
     */
    public function getQuantity()
    {
        return $this->quantity;
    }
    
    /**
     */
    public function getOrderHeaderId()
    {
        return $this->orderHeaderId;
    }
    
    /**
     */
    public function getProductId()
    {
        return $this->productId;
    }

    /**
     */
    public function setProductId($productId)
    {
        $this->productId = $productId;
    }
    
    /**
     */
    public function setName($name)
    {
        $this->name = $name;
    }
    
    /**
    */
    public function setAttributes($attributes)
    {
        $this->attributes = $attributes;
    }
    
    /**
    */
	public function setPrice($price)
	{
    	$this->price = $price;
    }
    
	/**
	*/
	public function setVat($vat)
	{
		$this->vat = $vat;
    }
    
    /**
    */
    public function setQuantity($quantity)
    {
        $this->quantity = $quantity;
    }
    
    /**
    */
	public function setOrderHeaderId($orderHeaderId)
	{
    	$this->orderHeaderId = $orderHeaderId;
	}
        
}
